/**
 * @Author ZhangGJ
 * @Date 2021/01/10 22:34
 */
#include <stdio.h>

int main() {
    double nc;
    for (nc = 0; getchar() != EOF; ++nc) { ;
    }
    printf("%.0f\n", nc);
}
